import { http } from '@/utils/http'
import type { PageParams } from '@/types/global'
import type { HotResult } from '@/types/hot'
// 通用热门推荐类型
type subTypeItem = PageParams & {
  subType?: string
}
//url 是请求地址，data是请求参数
export const getHotRecommendAPI = (url: string, data?: subTypeItem) => {
  return http<HotResult>({
    method: 'GET',
    url,
    data,
  })
}
